class User
{
   String userName
   String password

   static constraints =
   {
       userName(unique:true)
       password(blank:false, password:true)
   }
}